package com;

import com.service.ApplicationBoot;
import com.service.OrderService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = ApplicationBoot.class)
public class test {

    @Autowired
    OrderService orderService;

    @Test
    public void orderlist(){

        orderService.orderList();

//        和我想得不太一样  多执行
    }
}
